package com.pl.arithmetic.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * @Description: TODO
 * </p>
 * @ClassName HeroNode
 * @Author pl
 * @Date 2020/4/17
 * @Version V1.0.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class HeroNode {

    public int no;
    public String name;
    public String nickname;
    public HeroNode next;
    //构造器
    public HeroNode(int no, String name, String nickname) {
        this.no = no;
        this.name = name;
        this.nickname = nickname;
    }
    //为了显示方法，我们重新toString
    @Override
    public String toString() {
        return "HeroNode [no=" + no + ", name=" + name + ", nickname=" + nickname + "]";
    }
}